package oopday02;
//接口的演示
public class InterFaceDemo {
    public static void main(String[] args) {
        //Inter i = new Inter(); 编译错误，接口不能被实例化。
    }
}


interface Inter1{
    void show();
}

interface Inter2{
    void test();
}

abstract class Aoo{
    abstract void say();
}

//先继承在实现接口
class Boo extends Aoo implements Inter1,Inter2{

    public void show(){}
    public void test(){}

    void say() {}
}

//演示接口继承接口
interface Inter3{
    void show();
}
interface Inter4 extends Inter3{
    void test();
}
class Coo implements Inter4{
    public void show(){}
    public void test(){}
}